package cn.signalpha.modules.shop.excel.converter;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.CellData;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.property.ExcelContentProperty;

/**
 * 类说明
 *
 * @author suguangjun
 */
public class OrderRefundStatusConverter implements Converter<Integer> {

	@Override
	public Class supportJavaTypeKey() {
		return null;
	}

	@Override
	public CellDataTypeEnum supportExcelTypeKey() {
		return null;
	}

	@Override
	public Integer convertToJavaData(CellData cellData, ExcelContentProperty excelContentProperty, GlobalConfiguration globalConfiguration) {
		return null;
	}

	@Override
	public CellData convertToExcelData(Integer integer, ExcelContentProperty excelContentProperty, GlobalConfiguration globalConfiguration) {
		switch (integer){
			case -2:
				return new CellData("用户取消");
			case -1:
				return new CellData("商家拒绝");
			case 0:
				return new CellData("待审核");
			case 1:
				return new CellData("商家同意");
			case 2:
				return new CellData("用户寄回");
			case 3:
				return new CellData("商家确认");
			default:
				return new CellData("");
		}
	}
}
